package com.tai.demo.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * The type Book.
 */
@Component
@ConfigurationProperties(prefix = "book")
public class Book {

	private String name;
	private String author;
	private int age;

    /**
     * Gets name.
     *
     * @return the name
     */
    public String getName() {
		return name;
	}

    /**
     * Sets name.
     *
     * @param name the name
     */
    public void setName(String name) {
		this.name = name;
	}

    /**
     * Gets author.
     *
     * @return the author
     */
    public String getAuthor() {
		return author;
	}

    /**
     * Sets author.
     *
     * @param author the author
     */
    public void setAuthor(String author) {
		this.author = author;
	}

    /**
     * Gets age.
     *
     * @return the age
     */
    public int getAge() {
		return age;
	}

    /**
     * Sets age.
     *
     * @param age the age
     */
    public void setAge(int age) {
		this.age = age;
	}


}
